package cn.itsource.pethome.org.mapper;

import cn.itsource.pethome.basic.mapper.BaseMapper;
import cn.itsource.pethome.org.domain.Department;

import java.util.List;


public interface DepartmentMapper extends BaseMapper<Department> {
   //查询一级和二级部门列表
    List<Department> findOneLevelAndTwoLevelDepartments();


    //通过父id查询所有的子部门列表
    List<Department> findByParentid(Long pid);
}
